package router

import (
	"github.com/gin-gonic/gin"
	"order/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/user/login", UserLogin)
	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/goods/list", GoodsList)
	r.POST("/order/goods", OrderGoods)
	r.POST("/alipay", Alipay)
	r.POST("/order/list", OrderList)
}
